package com.ithema.reggie.mapper;

import com.ithema.reggie.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DishFlavorMapper {

    void bathchSave(List<DishFlavor> flavors);

    @Select("select * from dish_flavor where dish_id = #{id}")
    List<DishFlavor> findByDishId(Long dishid);

    //根据id删除口味
    @Delete("delete from dish_flavor where dish_id = #{id}")
    void deleteByDishId(Long dishid);



}
